import { Application } from "egg";

export default (app: Application) => {
  const { router, controller } = app;
  router.get("/api/app/:appID/versions", controller.version.list);
  router.get("/api/app/:appID/versions/all", controller.version.findAll);
  router.put("/api/app/:appID/version/:id", controller.version.update);
  router.post("/api/app/:appID/version", controller.version.create);
};
